package smartq.app;

import com.app.smart_q.R;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.app.Activity;
import android.content.Intent;

public class MainActivity2 extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
//		
//		myDBClass myDb = new myDBClass(this);
//		myDb.DeleteData("222");
//		myDb.DeleteData("444");
//		myDb.DeleteData("577");
//		myDb.DeleteData("778");
		
		final Button btn1 = (Button) findViewById(R.id.buttom_time);
		btn1.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {          	
				// Open Form Add
				Intent newActivity = new Intent(MainActivity2.this,AddActivity.class);
				startActivity(newActivity);
				}
			});
		

		// Button2 (Show)
        final Button btn2 = (Button) findViewById(R.id.button2);
        // Perform action on click
        btn2.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	
            	// Open Form Show
            	Intent newActivity = new Intent(MainActivity2.this,ShowActivity.class);
            	startActivity(newActivity);
        
            }
        });
        
	}

}

